function Balloon(){
	this.initialize.apply(this, arguments);
}
Balloon.prototype = {
	initialize: function(){
		this.elem = $('balloon');
		this.elem.style.display = 'none';
	},
	show: function(opt){
		clearTimeout(this.timer);
		this.elem.textContent = opt.text;
		this.elem.style.display = 'block';
		if (opt.msec) {
			var self = this;
			this.timer = setTimeout(function(){
				self.hide();
			},opt.msec);
		}
		if (opt.click) {
			this.elem.onclick = opt.click;
		} else {
			this.elem.onclick = undefined;
		}
	},
	hide: function(){
		clearTimeout(this.timer);
		this.elem.style.display = 'none';
	}
};
